Related Vulnerabilities: CVE-2021-28877  

In the standard library in Rust before 1.51.0, the Zip implementation calls __iterator_get_unchecked() for the same index more than once when nested. This bug can lead to a memory safety violation due to an unmet safety requirement for the TrustedRandomAccess trait.

Severity Medium

Remote Yes

Type Incorrect calculation

Description

In the standard library in Rust before 1.51.0, the Zip implementation calls __iterator_get_unchecked() for the same index more than once when nested. This bug can lead to a memory safety violation due to an unmet safety requirement for the TrustedRandomAccess trait.

AVG-1802 rust 1:1.50.0-2 1:1.51.0-1 Medium Fixed

https://github.com/rust-lang/rust/pull/80670
https://github.com/rust-lang/rust/commit/d8843d9d82950eeb27bdce496f6179b085549d29